package com.blank.shop.openfeign.consumer;

import com.blank.shop.openfeign.ShopOpenfeignApplication;
import org.springframework.context.annotation.Profile;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <br/>Date 2021/8/31
 * <br/>Time 15:49:35
 *
 * @author _blank
 */
@Profile({ShopOpenfeignApplication.SERVER_CONSUMER})
@RestController
public class FeignConsumerController {

    @Resource
    private FeignConsumerService feignConsumerService;

    @GetMapping
    public ResponseEntity<String> sayHello() {
        return this.feignConsumerService.sayHello();
    }

}
